import request from '@/utils/request'

export function list(query) {
    return request({
        url: '/ownWPHApi/statistics/list',
        method: 'get',
        params: query
    })
}

export function channelList(query) {
    return request({
        url: '/ownWPHApi/statistics/channelList',
        method: 'get',
        params: query
    })
}

export function facet(query) {
    return request({
        url: '/ownWPHApi/statistics/statisticsTime',
        method: 'get',
        params: query
    })
}


export function channelFacet(query) {
    return request({
        url: '/ownWPHApi/statistics/statisticsChannel',
        method: 'get',
        params: query
    })
}


export function businessTypeFacet(query) {
    return request({
        url: '/ownWPHApi/statistics/statisticsBusinessType',
        method: 'get',
        params: query
    })
}


// 导出
export const exportCsv = '/ownWPHApi/statistics/exportCsv'
